package com.vend.common.utils;

/**
 * Created by glendal on 2022/01/24.
 * 快速双击的判断逻辑处理
 */
public class DoubleClickUtils {
    private static long lastClickTime;
    public synchronized static boolean isFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < 500) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
